<template>
	<BaseSearchForm v-model:search-param="checkParam" @goBack="emit('goto-edit')" @search="search">
	</BaseSearchForm>
	<div class="tableBox">
		<MkTable :data="list" border @row-dblclick="rowDbClick">
			<MkColumn label="单号" prop="id" />
			<MkColumn  label="单据状态" prop="danJuZhuangTai" />
			<MkColumn label="创建时间" prop="createTime" />
			<MkColumn label="创建人" prop="createUserName" />
		</MkTable>
		<div style="text-align: center; width: 100%;">
			<MkPagination v-model:page="checkParam.page" v-model:pageSize="checkParam.pageSize" :totalCount="total"
				@query="search" />
		</div>

	</div>
</template>

<script lang='ts' setup>
// 输血申请模块--列表
import useListMastControls from '/@/componentsMaike/basHook/useListMastControls'

import { TraFuHeApi } from '/@/api/tra/TraFuHe';
defineOptions({
	name: 'traXueXingFuHeList',
});
/**
 * 注册
 */
const emit = defineEmits(['goto-edit'])
/**
 * 搜索
 */

const { checkParam, total, list, search } = useListMastControls(TraFuHeApi.page);

/**
 * 双击行
 */
const rowDbClick = (row: any) => {
	emit('goto-edit', row)
}
/**
 * 暴露
 */
defineExpose({ search })

</script>

<style lang='scss' scoped></style>